package com.exam.common.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @ClassName : Request
 * @Description : 通用返回结果
 * @Author : WHB
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Request {

    private boolean flag; // 是否成功
    private Integer code; // 返回码
    private String message; // 返回信息
    private Object data; // 返回数据

    public Request(boolean flag, Integer code, String message) {
        this.flag = flag;
        this.code = code;
        this.message = message;
    }
}
